Skip to main content

Uplink Message Simplifier

This processor keeps only essentials parts of the actility uplink message and drop the rest of it.

img

Input message

An input message could be similar to this:

{
"DevEUI_uplink": {
"Time": "2021-12-01T00:00:11.013+01:00",
"DevEUI": "402C765000000074",
"FPort": 2,
"FCntUp": 53,
"ADRbit": 1,
"MType": 4,
"FCntDn": 54,
"payload_hex": "02300040a0",
"mic_hex": "61fa24cf",
"Lrcid": "00000127",
"LrrRSSI": -83,
"LrrSNR": 9.5,
"SpFact": 7,
"SubBand": "G0",
"Channel": "LC1",
"DevLrrCnt": 2,
"Lrrid": "3C200E92",
"Late": 0,
"LrrLAT": 48.933865,
"LrrLON": 1.195898,
"Lrrs": {
"Lrr": [
{
"Lrrid": "3C200E92",
"Chain": 0,
"LrrRSSI": -83,
"LrrSNR": 9.5,
"LrrESP": -83.461838
},
{
"Lrrid": "1000027C",
"Chain": 0,
"LrrRSSI": -89,
"LrrSNR": 6.75,
"LrrESP": -89.832695
}
]
},
"CustomerID": "100133870",
"CustomerData": {
"alr": {
"pro": "LORA/Generic",
"ver": "1"
},
"tags": [
"site=Paris",
"location = Kitchen office",
"=",
"Hell=",
"=125",
"Hello World"
]
},
"ModelCfg": "1:TWA_100133870.15409.AS",
"DriverCfg": {
"mod": {
"pId": "baumer",
"mId": "wep5",
"ver": "1"
},
"app": {
"pId": "baumer",
"mId": "wep5",
"ver": "1"
},
"id": "custom:baumer-wep:1"
},
"InstantPER": 0,
"MeanPER": 0,
"DevAddr": "04D2848E",
"AckRequested": 1,
"rawMacCommands": "",
"TxPower": 2,
"NbTrans": 1,
"Frequency": 868.1,
"DynamicClass": "A",
"payload": {
"type": "pressure",
"decoder_version": "BAUMER_GEN1_V103",
"battery": {
"type": "tension",
"value": 3.6,
"unit": "V",
"error": 0
},
"measure": {
"value1": {
"name": "pressure1",
"type": "pressure",
"value": 0.004,
"unit": "bar Rel",
"error": 0
}
},
"specific_info": {
"pressureUnit": "bar Rel",
"temperature": 23,
"temperatureError": 0,
"pressure": 0.004,
"pressureError": 0,
"errorCode": "00",
"alarmLowerThreshold": "0",
"alarmUpperThreshold": "0",
"alarmNegativeTrend": "0",
"alarmPositiveTrend": "0"
},
"diagnostic": {
"failure_status": 0,
"battery_level": 3.6,
"temp_electronic_board": 23
},
"debug": {
"debug_unit_code": 0,
"debug_etendu": 4,
"debug_pressurePercent": 0.1,
"debug_payload": [
2,
48,
0,
64,
160
]
}
}
}
}

Output message

Only DevEUI Time FPort FCntUp FCntDn LrrRSSI LrrSNR LrrESP SpFact payload_hex BatteryLevel BatteryTime and BatteryTime are kept.

The output message is:

{
"type": "pressure",
"decoder_version": "BAUMER_GEN1_V103",
"battery": {
"type": "tension",
"value": 3.6,
"unit": "V",
"error": 0
},
"measure": {
"value1": {
"name": "pressure1",
"type": "pressure",
"value": 0.004,
"unit": "bar Rel",
"error": 0
}
},
"specific_info": {
"pressureUnit": "bar Rel",
"temperature": 23,
"temperatureError": 0,
"pressure": 0.004,
"pressureError": 0,
"errorCode": "00",
"alarmLowerThreshold": "0",
"alarmUpperThreshold": "0",
"alarmNegativeTrend": "0",
"alarmPositiveTrend": "0"
},
"diagnostic": {
"failure_status": 0,
"battery_level": 3.6,
"temp_electronic_board": 23
},
"debug": {
"debug_unit_code": 0,
"debug_etendu": 4,
"debug_pressurePercent": 0.1,
"debug_payload": [
2,
48,
0,
64,
160
]
},
"DevEUI": "402C765000000074",
"Time": "2021-12-01T00:00:11.013+01:00",
"FPort": 2,
"FCntUp": 53,
"FCntDn": 54,
"LrrRSSI": -83,
"LrrSNR": 9.5,
"SpFact": 7,
"payload_hex": "02300040a0"
}